@Lynxtickler ahh, I misunderstood what you were referring to. Didn’t realise you were talking about JSON Schema and not the JSON syntax itself.
I’m a lion from Australia! (he/him)
#nobot (please do not index this profile in search engines)
@Lynxtickler ahh, I misunderstood what you were referring to. Didn’t realise you were talking about JSON Schema and not the JSON syntax itself.
It’s the other way around. The YAML schema supports JSON because YAML was designed as a superset of JSON.
Oh absolutely. I can think of several situations where that wouldn’t work well or at all, for example, a switch statement that sets up variables to be used in the rest of the function.
Also, good luck using
switch
without anybreak
s, but I’m guessing that’s not quite what your teacher had in mind.
The teacher, probably: “You must always put a switch
in its own function! Then use return
at the end of each case.”
I already said that
Naming things is one of the two most difficult issues in IT, alongside cache validation and off-by-one errors.
@LainTrain That would be @soatok@furry.engineer. The blog itself is also federated at @soatok@soatok.blog
[tagging @vzq @programming for Mastodon->Lemmy federation]