Content deleted Content added
Citation bot (talk | contribs) Added date. | Use this bot. Report bugs. | Suggested by Spinixster | Category:Programming constructs | #UCB_Category 53/70 |
Subcelestial (talk | contribs) |
||
Line 142:
=== Java ===
{{Main article|Java (programming language)}}
Java
enum Stage{test,qa,prod}
record Deploy(UUID image, Stage stage){}
Line 149:
var deploy=new Deploy(UUID.randomUUID(), Stage.prod)
STR."Installing \{deploy.image()} on Stage \{deploy.stage()} ..."
</syntaxhighlight>
It was removed in Java 23 due to security and design issues.<ref>https://docs.oracle.com/en/java/javase/23/migrate/significant-changes-jdk-release.html</ref>
=== JavaScript ===
|