[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Zig: The true successor to C

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 17
Thread images: 2

File: 1475269144940.png (3KB, 227x54px) Image search: [Google]
1475269144940.png
3KB, 227x54px
This is the best C successor I've seen! Why aren't you using it, /g/?

?) C successor with manual memory management, ironed out edge cases, new take on error handling (that resembles well written error handling in C), generics, compile time reflection/execution (macros?), import .h works directly, exporting to C works directly, nullable types etc.

http://ziglang.org
>>
take off every zig
>>
seems pointless
>>
If people still talk about Zig in 10 years I might believe it.
>>
so similar syntax to rust, wonder why they kept
fn name(args) -> type {
monstrosity, appreciate defer keyword (know any other than Go that has that?)
>>
just use D with --betterC switch
>>
>>62305051
>(know any other than Go that has that?)
Swift
>>


const io = @import("std").io;

pub fn main() -> %void {
%%io.stdout.printf("Hello, world!\n");
}

> @import
> ->
> %%
The syntax is absolute horrible, even worse than ATS or sepples.
>>
>>62305051
Also C++ with a little initial work. (keyword: scope guard)
>>
>>62305138
>The syntax is absolute horrible
my first reaction too. This language looks like a bigger pain in the ass than C to write code in just because of the syntax-level complexity
>>
>>62304701
C will always be the king
>>
>>62305138
what is this abomination
>>
>>62304701
People have been trying to design a successor to C ever since about 1980 and they've never done it. Mainly because they keep trying to pile in whatever the hot new thing for languages to have is, and the reason people use C these days is that they want a known quantity, not the latest meme.
>>
>>62304701
Still waiting for JAI
>>
>>62307425
/thread
or something else sane with the same metaprogramming facility
>>
File: python-vs-c-1-728.jpg (80KB, 728x546px) Image search: [Google]
python-vs-c-1-728.jpg
80KB, 728x546px
The successor to C is Python and C.
>>
>>62304701
>62304701>>62306953 >>62307019 >>62307425This
Looks messy, prety much really shitty looking compared to C
Thread posts: 17
Thread images: 2


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.