3 ms·
Not only that. Nim also has benefits like Ada's range types, a sophisticated macro system, and Perl's native regular expression syntax. It also compiles to C wh
by progman 10y ago
Not only that. Nim also has benefits like Ada's range types, a sophisticated macro system, and Perl's native regular expression syntax. It also compiles to C which makes porting to other platforms easy.
- vram22 10y ago>Nim also has benefits like Ada's range types Are Ada's range types similar to D's, or quite different? https://dlang.org/phobos/std_range.html https://dlang.org/phobos/std_range.html The above page links to the one below - the one below is about the concepts, by Andrei Alexandrescu (who joined Walter Bright in developing D). http://www.informit.com/articles/printerfriendly/1407357 http://www.informit.com/articles/printerfriendly/1407357
- progman 10y agoI know Ada not D. Nim's subrange are close to Ada. If you define a type t1 = range [5..20] and you assign a value of 1 to a variable of type t1 then you get a compilation or runtime error.
- vram22 10y agoAh, then that is similar to Pascal too, from its early versions, IIRC, not just Turbo Pascal onwards.