Show HN: The C3 programming language (C alternative language)
11–20 of 192 posts
Re: Show HN: The C3 programming language (C alternative language)
#12I do all my coding in Python, but if I ever find myself needing to reach for C again, I'll certainly consider this.
EDIT: Though is there a reason why "fn" is needed? I would think the AST builder would still be able to identify the beginning of a function definition without it, and as a programmer, I can identify a function definition easily.
Re: Show HN: The C3 programming language (C alternative language)
#13Are there any examples of using a C library (binding, FFI) in C3? A quick search came up empty.
Re: Show HN: The C3 programming language (C alternative language)
#14How does this compare to Zig or Odin, which have the same goals of improving upon C and have gotten occasional publicity here on HN?
Zig has SIMD vectors, but I frequently need 3D vectors, and refuse to use things like vec3_add(vec3_mul(a, 2), b) etc since I mainly develop 3D graphics software.
Re: Show HN: The C3 programming language (C alternative language)
#15[dead]
Re: Show HN: The C3 programming language (C alternative language)
#16Re: Show HN: The C3 programming language (C alternative language)
#17tbh I think one of the things I really liked reading through examples was the change in the switch/case behavior. I always thought implicitly falling into the next case was an awful design, and that a break is the more logical implicit behavior except in the case (no pun intended) of stacked empty case statements. I do all my coding in Python, but if I ever find myself needing to reach for C again, I'll certainly con…
Re: Show HN: The C3 programming language (C alternative language)
#18One thing I just can't understand is proactively using the :: syntax. It's sooo ugly with so much unnecessary line noise. Just use a single period! I think one of the best decisions D made was to get of -> and :: and just use . for everything.
In C3 there is something called "path shortening", allowing you to use `foo::bar()` in place of something like `std::baz::foo::bar()`. To do something similar with `.` is problematic, because you don't know where the path ends. Is `foo.baz.bar()` referring to `foo::baz::bar()` or `foo::baz.bar()` or `foo.baz.bar()`?
Re: Show HN: The C3 programming language (C alternative language)
#19One thing I just can't understand is proactively using the :: syntax. It's sooo ugly with so much unnecessary line noise. Just use a single period! I think one of the best decisions D made was to get of -> and :: and just use . for everything.
Re: Show HN: The C3 programming language (C alternative language)
#20[dead]