Add p.changeExtension
Closed this issue · 1 comments
matanlurey commented
This is especially common when writing compilers/transformers/tools.
Today we write:
String changeExtension(String path, String newExtension) {
return '${withoutExtension(path)}$newExtension';
}
nex3 commented
I'm surprised this doesn't exist already...