Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Having @ and .{ } all over the place is hardly lovely, as is having modules like JavaScript's CJS.


It's especially bad on a qwertz keyboard as well.


That's why "real programmers" use English keyboard layout regardless of the physical keyboard ;)

Curly brace syntax would never have been invented in Europe (case in point: Python and Pascal).


Oh for sure. I am using qwerty myself. And my fav language (f#) has relatively few curly braces.


F# is wonderful. I wish someone would make an F# that compiled as fast as OCaml or Go and which had Go’s standard library and simple tooling.


.NET ecosystem is only matched by Java, and Native AOT exists, even if there are some issues with printf, due to its current implementation.


Real programmers deliver business value, regardless of what keyboard they have at their disposal.

Just like great musicians make the difference in the band, regardless of the instruments scattered around the studio.


JSON is everywhere nowadays - How can one complain about curly braces {} ? EU programmers would have already mapped {} after their first REST API.


I’ve been using Dvorak for 28 years and I still fat finger punctuation daily.


Every file is an implicit struct, so importing a module is just importing a struct with static members.

You can also do something like:

```Point.zig x: i32, y: i32,

const Self = @This(); fn add(self: Self, other: Self) Self { // ... } ```


Yeah, which is basically how requires() kind of works.


There’s nothing wrong with the CommonJS approach except that it’s not designed for static analysis (and whether that was really an issue is debatable). In Zig, it’s compile-time.


For starters being text based for what is supposed to be a systems language, that should support binary distribution.


Supporting binary distribution seems unrelated to the ways in which it’s “like JavaScript’s CJS”, especially in the context of this post about syntax.


Not really, because I expect to also have binary distribution of modules, as in systems languages like Modula-2, Mesa, Object Pascal/Turbo/Delphi, D, Ada,....




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: