Comment D is underrated (Score 1) 386
it is definitely better than c++ for my use cases, but it needs a Boost port. However as with C/Freebasic/C++ it should offer a better type system
I cannot understand why
void print(MyObject obj){
writeln(obj.myStringRepresntation);
}
does not make the compiler complaint that MyObjeect should be marked as const in the signature
Of course type inference should have a way to see that writeln is const (the define it)
Even if writeln is unsafe, the user could put an annotation on the signature
@trust void writeln(const T){ //asm code
}
and one could infer that print should mark MyObject as const. D is a good language, but it needs more love.