Click here to Skip to main content
16,004,782 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Shooting yourself in the foot, vs blowing your whole damned leg off. Pin
honey the codewitch22-Aug-24 5:28
mvahoney the codewitch22-Aug-24 5:28 
GeneralI don't wanna talk about it, but I wanna talk about it... Pin
Jeremy Falcon21-Aug-24 14:04
professionalJeremy Falcon21-Aug-24 14:04 
GeneralRe: I don't wanna talk about it, but I wanna talk about it... Pin
Mike Hankey21-Aug-24 14:09
mveMike Hankey21-Aug-24 14:09 
GeneralRe: I don't wanna talk about it, but I wanna talk about it... Pin
Jeremy Falcon21-Aug-24 14:25
professionalJeremy Falcon21-Aug-24 14:25 
GeneralRe: I don't wanna talk about it, but I wanna talk about it... Pin
Mike Hankey21-Aug-24 15:49
mveMike Hankey21-Aug-24 15:49 
GeneralRe: I don't wanna talk about it, but I wanna talk about it... Pin
Jeremy Falcon21-Aug-24 14:53
professionalJeremy Falcon21-Aug-24 14:53 
JokeRe: I don't wanna talk about it, but I wanna talk about it... Pin
PIEBALDconsult21-Aug-24 16:05
mvePIEBALDconsult21-Aug-24 16:05 
GeneralRe: I don't wanna talk about it, but I wanna talk about it... Pin
Jeremy Falcon21-Aug-24 16:31
professionalJeremy Falcon21-Aug-24 16:31 
I mean I know this is a joke... so the obligatory har har har... har har har. Laugh | :laugh: Laugh | :laugh: Laugh | :laugh:

Buuutttt, and I know I'm sounding like a fanboi, but it's doing things that apparently the peeps behind C are too old to care about. Like, I mean, Zig sounds silly in name but I'm sure C is ran by grandpas still using an outhouse.

Let me just give you a simple example here, every other modern language has a concept of lambda type expressions (using C# nomenclature), but not C. Now, Zig doesn't do that 1 for 1, but let me just show you with code.
for (0..10) |i| {
    // variable 'i' will have each value 0 to 9
}
Of course you can do that in C by manually declaring crap, but it's so much more verbose and a waste of typing.

Or what about a while block that supports a counter.
while (n <= 20) : (n += 1) {
    // stuff
}
Or and this is where things get crazy, being able to name blocks and break out of them.
namedBlock: {
    // do stuff
    break :namedBlock 42; // 42 is a return value if you want to assign this block to variable
    // no stuff done because of break
}

I could go on, but I'd be writing a book here. But stuff like comptime makes C macros look like a joke. I say this as a dude who loves C. I'm not a hater; I'm just a realist.

I mean like it or not man, history has shown us that things die out if they don't evolve. Nobody is speaking much Latin these days despite the fact it used to dominate the world. We're just too close to C to realize it's gotten very little love for a long time. Been 50 years man. That's half a century. The world has moved on.
Jeremy Falcon

GeneralRe: I don't wanna talk about it, but I wanna talk about it... Pin
charlieg22-Aug-24 0:59
charlieg22-Aug-24 0:59 
GeneralRe: I don't wanna talk about it, but I wanna talk about it... Pin
Jeremy Falcon22-Aug-24 2:44
professionalJeremy Falcon22-Aug-24 2:44 
GeneralRe: I don't wanna talk about it, but I wanna talk about it... Pin
charlieg22-Aug-24 1:30
charlieg22-Aug-24 1:30 
GeneralRe: I don't wanna talk about it, but I wanna talk about it... Pin
Jeremy Falcon22-Aug-24 2:54
professionalJeremy Falcon22-Aug-24 2:54 
GeneralRe: I don't wanna talk about it, but I wanna talk about it... Pin
Jörgen Andersson21-Aug-24 20:17
professionalJörgen Andersson21-Aug-24 20:17 
GeneralAsynchronous waaahh??? Pin
Jeremy Falcon21-Aug-24 13:33
professionalJeremy Falcon21-Aug-24 13:33 
RantRe: Asynchronous waaahh??? Pin
PIEBALDconsult21-Aug-24 16:15
mvePIEBALDconsult21-Aug-24 16:15 
GeneralRe: Asynchronous waaahh??? Pin
Jeremy Falcon21-Aug-24 16:41
professionalJeremy Falcon21-Aug-24 16:41 
GeneralRe: Asynchronous waaahh??? Pin
PIEBALDconsult21-Aug-24 17:16
mvePIEBALDconsult21-Aug-24 17:16 
GeneralRe: Asynchronous waaahh??? Pin
Jeremy Falcon21-Aug-24 17:23
professionalJeremy Falcon21-Aug-24 17:23 
GeneralRe: Asynchronous waaahh??? Pin
PIEBALDconsult21-Aug-24 17:26
mvePIEBALDconsult21-Aug-24 17:26 
GeneralRe: Asynchronous waaahh??? Pin
Jeremy Falcon21-Aug-24 17:33
professionalJeremy Falcon21-Aug-24 17:33 
GeneralRe: Asynchronous waaahh??? Pin
PIEBALDconsult24-Aug-24 7:23
mvePIEBALDconsult24-Aug-24 7:23 
GeneralRe: Asynchronous waaahh??? Pin
Jeremy Falcon24-Aug-24 7:47
professionalJeremy Falcon24-Aug-24 7:47 
GeneralRe: Asynchronous waaahh??? Pin
PIEBALDconsult24-Aug-24 8:05
mvePIEBALDconsult24-Aug-24 8:05 
GeneralRe: Asynchronous waaahh??? Pin
Jeremy Falcon24-Aug-24 8:31
professionalJeremy Falcon24-Aug-24 8:31 
GeneralRe: Asynchronous waaahh??? Pin
PIEBALDconsult24-Aug-24 9:48
mvePIEBALDconsult24-Aug-24 9:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.