Skip to main content
4 votes
0 answers
55 views

I am writing a Powershell script which has a function: $CutFiles3 = @(Get-ChildItem $home -Force -Directory -Filter autoruntemp*) This command is slowing down my script and is taking 10 seconds to ...
Sahishnu Shastry's user avatar
3 votes
1 answer
165 views

I'm working on a rust project that relies heavily on match statements. Rust's exhaustive matching is a big part of the reason that we picked this language to work in, and I'm curious if it's possible ...
David Carli-Arnold's user avatar
1 vote
2 answers
391 views

Given this java code: public class Main { public static void main(String[] args) { // These are objects of the only 2 classes that implement Parent // `sealed` defines that there ...
Rik Schaaf's user avatar
  • 1,203
0 votes
1 answer
108 views

I have an enum of operations (that I can't change, unfortunately): enum OpType { OpA = 0, OpB = 1, } …and a set of types for objects that carry the data needed for each operation: type A = { ...
beta's user avatar
  • 2,580
2 votes
2 answers
2k views

In Kotlin, a sealed class is an abstract class whose direct subclasses are known at compile time. All the direct subclasses of the sealed class must be defined in the same module as the sealed class. ...
Aadit M Shah's user avatar
  • 74.5k