These are chat archives for symengine/symengine

17th
Jun 2016
Srajan Garg
@srajangarg
Jun 17 2016 05:35
@isuruf made changes to symengine/symengine#989, ready from my side
Srajan Garg
@srajangarg
Jun 17 2016 11:28
anything required?
Isuru Fernando
@isuruf
Jun 17 2016 11:30
I'll have a look tonight
Srajan Garg
@srajangarg
Jun 17 2016 11:33
What's the difference between (say) using myint = int and typedef myint int?
Francesco Biscani
@bluescarni
Jun 17 2016 11:33
those are identical, but the first form supports also template aliases
template <typename T>
using my_vector = std::vector<T>;

my_vector<int>;
my_vector<double>;
Srajan Garg
@srajangarg
Jun 17 2016 11:34
Right
Francesco Biscani
@bluescarni
Jun 17 2016 11:34
using is more modern and should be preferred for consistency IMO
Srajan Garg
@srajangarg
Jun 17 2016 11:35
So I was working with D, typedefs are different there https://dlang.org/library/std/typecons/typedef.html
while alias is synonymous to using it seems
Francesco Biscani
@bluescarni
Jun 17 2016 11:35
in C++ typedef/using never create a new type
they are always aliases
Srajan Garg
@srajangarg
Jun 17 2016 11:36
How are new types created?
Francesco Biscani
@bluescarni
Jun 17 2016 11:36
you create new structs/classes
that's the only way
Srajan Garg
@srajangarg
Jun 17 2016 11:37
Right, thanks
Francesco Biscani
@bluescarni
Jun 17 2016 11:37
sure np
Francesco Biscani
@bluescarni
Jun 17 2016 11:43
are you working with D on some specific project or just for fun?
Srajan Garg
@srajangarg
Jun 17 2016 11:47
Was just checking it out, nothing major
Francesco Biscani
@bluescarni
Jun 17 2016 11:48
right.. I wish I had the time to learn something more about languages like D and Rust