TerrorBite

joined 6 years ago
[–] TerrorBite@meow.social 1 points 7 months ago

@Lynxtickler ahh, I misunderstood what you were referring to. Didn't realise you were talking about JSON Schema and not the JSON syntax itself.

[–] TerrorBite@meow.social 4 points 7 months ago (2 children)

It's the other way around. The YAML schema supports JSON because YAML was designed as a superset of JSON.

@Lynxtickler @canpolat

[–] TerrorBite@meow.social 2 points 9 months ago

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.

@zib @UnRelatedBurner @programming

[–] TerrorBite@meow.social 3 points 9 months ago (2 children)

Also, good luck using switch without any breaks, 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.”

@zib @UnRelatedBurner @programming

[–] TerrorBite@meow.social 1 points 1 year ago (1 children)

I already said that

[–] TerrorBite@meow.social 2 points 1 year ago (8 children)

Naming things is one of the two most difficult issues in IT, alongside cache validation and off-by-one errors.