will the eventual introduction of const enum generics kill the "typestate" pattern?
here is a little example of what the typestate pattern is if you don't know.
i don't see a reason that const generic enums couldn't replace this "hacky" solution completely. am i missing something completely, or am i correct in assuming this?
edit: by "kill", i meant kill this way of doing the pattern, with PhantomData and sealed trait wizardry required. it would become more intuitive with enums.