PROPOSAL: String parameters compile time validation (early beta) (original) (raw)

Marek Kozieł develop4lasu at gmail.com
Thu Mar 26 13:50:30 PDT 2009


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/



More information about the coin-dev mailing list