buerkle
Joined 16 years ago
Joined 16 years ago
StringUtils.trim(MyType.toString());I'd much rather deal with the 2nd version than the first. It's self-documenting and prevents errors like calling "foo(userId, accountId)" letting the compiler test for those cases. It also helps with more complex data structures without needing to create another type.
Map<UUID, List<UUID>>
Map<AccountId, List<UserId>> MyType extends String;
void foo(String s);
foo(new MyType()); // is valid
Leading to the original problem. I don't want to represent MyType as a String because it's not.I think you misunderstand the risk that non-CEO employees are exposed as cycomanic pointed out. CEOs that make this much money are more capable of defending themselves than a regular employee, not only from their wealth but from their network. It's rare that a CEO has to testify to Congress, or deal with FTC/FCC, etc. And dealing with BOD, hostile takeovers, or activist investors pales in comparison to what many people deal with day to day. A CEO is not going to go homeless from a hostile takeover.