PROPOSAL: String parameters compile time validation (early beta) (original) (raw)
Marek Kozieł develop4lasu at gmail.com
Thu Mar 26 13:50:30 PDT 2009
- Previous message: ability to invoke a MethodHandle [?]
- Next message: PROPOSAL: String parameters compile time validation (early beta)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Strings represent most wide range of objects, while they are omitted with good validation at compile time (ide). As help I want propose, or at start ask for opinion about adding compile time validation to String parameters.
poor sample:
class Binary{ @RegExp("regExpName","regExp") @RegExp("regExpName1","regExp")
void main(...){
String bites = @RegExp("regExpName") "....";
...
}
int parseBites(@RegExp("regExpName") String bites){
...
};
}
Validation by regexp-s would be only at compile time (efficiency).
Target is quite clear, but anyone see any problems?
-- Pozdrowionka. / Regards. Lasu aka Marek Kozieł
http://lasu2string.blogspot.com/
- Previous message: ability to invoke a MethodHandle [?]
- Next message: PROPOSAL: String parameters compile time validation (early beta)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]