this post was submitted on 20 Jan 2024
167 points (98.8% liked)

196

17294 readers
2272 users here now

Be sure to follow the rule before you head out.


Rule: You must post before you leave.



Other rules

Behavior rules:

Posting rules:

NSFW: NSFW content is permitted but it must be tagged and have content warnings. Anything that doesn't adhere to this will be removed. Content warnings should be added like: [penis], [explicit description of sex]. Non-sexualized breasts of any gender are not considered inappropriate and therefore do not need to be blurred/tagged.

If you have any questions, feel free to contact us on our matrix channel or email.

Other 196's:

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] electric 1 points 1 year ago (2 children)

No, it's an exercise in Swift showcasing how emojis are valid code.

[–] InFerNo@lemmy.ml 6 points 1 year ago* (last edited 1 year ago) (1 children)

But this is using string output, of course it will work. Define your variables as emoji.

let 😅 = 3

[–] electric 2 points 1 year ago

Good point. That's still valid as far as I'm aware, was one of the first things the professor pointed out.

[–] cashews_best_nut 2 points 1 year ago (1 children)

Swift

Nasty language for Apple-degenerates.

[–] electric 1 points 1 year ago

I don't disagree. Apple's funding the classes and there is a ton of demand for Swift devs.

To my surprise though, loving the language. Doesn't waste my time with semi colons and encourages readability. Shame it's stuck to Apple.