News for hackers. Stuff that matters.
[dead]
Re:Apple Developer Documentation Is Missing by eugeniub on Monday October 28, 2019 @11:14AM (#21377695)
> Most languages have had this since the 1960s.

> It's called the "if" clause.

If we got rid of everything we don't absolutely need in programming, we would have to get rid of 98% of Swift syntax, and probably every modern programming language including Swift.

Re:Apple Developer Documentation Is Missing by ChrisMarshallNY on Monday October 28, 2019 @11:25AM (#21377772)
Yes, but I LIKE Swift, because of all that sugar.

I started off with machine language, in embedded systems. You can't get much more "raw" than that.

I have been writing Swift exclusively for a long time. I speak it without an accent. It's my beauty.

But I also know that you can have so much sugar you fall into a diabetic coma.

Re:Apple Developer Documentation Is Missing by FpUser on Monday October 28, 2019 @11:51AM (#21378019)
>But I also know that you can have so much sugar you fall into a diabetic coma.

Exactly my feelings. Same thing here started from machine code and now doing everything else including kitchen sink

Re:Apple Developer Documentation Is Missing by megous on Monday October 28, 2019 @01:27PM (#21379221)
Did you guys really start from machine code or do you mean assembler?
Re:Apple Developer Documentation Is Missing by FpUser on Monday October 28, 2019 @08:30PM (#21383238)
Machine code. Was actually typing it on big roll of paper and then crawling around it pretending to be a debugger
Re:Apple Developer Documentation Is Missing by ChrisMarshallNY on Monday October 28, 2019 @02:58PM (#21380286)
Machine. Hex keypad and a lot of looking up hex codes for commands.

Type in a bunch of numbers, then set the PC to 0.

Assembler was great after that.

I do not remember that stuff fondly. It sucked.

Re:Apple Developer Documentation Is Missing by leshow on Monday October 28, 2019 @12:05PM (#21378162)
> It's called the "if" clause.

"If" is often a statement, not an expression, so they aren't equivalent in a lot of cases. I'm not sure if this is the case in Swift, but I'm fairly certain that Swift's '?' operator also does unwrapping and propagation, similar to '?' in Rust.