Pierre van Rooden wrote:
> Michiel Meeuwissen wrote:
> 
> >You exactly got my point.
> >
> I hope you also got mine: string is a base type, and therefor should not 
> have restrictions on its input, including 'soft' ones.
> It woudl be pretty simple to make the rule:
> - if there is no pattern, it's a line (default behavior)
> - if there is a pattern, it's a line if it excludes newlines

No I don't really understand your point, because your rule unnecessarily
consists of two parts. 

I like to not make it possible to have 'no' pattern, because then i must check
for that too. 

So, the nice and simple line:
dataType.getPattern().matcher("\n").matches())

must become something annnoyingly more complex with if (pattern != null
&& pattern.matcher ...).

That is prone to NPE, and unnecessary because a pattern 'no pattern'
exists (.*).


Michiel


-- 
Michiel Meeuwissen                  mihxil'
Peperbus 111 MediaPark H'sum          [] ()
+31 (0)35 6772979         nl_NL eo_XX en_US



_______________________________________________
Developers mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/developers

Reply via email to