Pierre van Rooden wrote:

I don't see a point of defining a pattern on the default String datatype.
If you specify a string and do not assign it a different datatype/guitype, it will, by default, have this pattern associated. Whether that pattern is enforced or not is immaterial imo - a default, base datatype should not have any unnecessary restrictions. That the default representation of a string is an input box instead of a textarea is not of interest here. I prefer Nico's solution, to add a 'line' datatype, and let 'string' be unrestricted.


I understand Michiels point. It is very hard to make smart editors if the String datatype answers with undefined on the yes/no-question: do you like newlines? MMbase users like smart editors and this is one of the first question a smart edotor will ask. If a smart editor is not allowed to ask this then it has to hardcode it for all specializations which is not very smart.

From a purist point of view this is ugly and unacceptable, but from a pragmatic point of view this is the best choice.
I try to be a purist, but if that fails then I will be pragmatic.

Nico

BTW. Michiels last proposal is already in the head.
_______________________________________________
Developers mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/developers

Reply via email to