[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    Re: Default Styles (take two)
From:       "Philipp A." <flying-sheep () web ! de>
Date:       2014-02-18 14:09:23
Message-ID: CAN8d9gnuPfkMPVWQDeUkpuTw3b_Bxmx+H7R_sR2jr1hkqkNkOw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


whoops, didn't get the round 2. OK. all together:

1. 2014-02-17 23:49 GMT+01:00 Milian Wolff <mail@milianw.de>:

    > Can you elaborate why you want to have [dsBuiltin], and how it
differs from
    > dsKeyword, dsFunction, dsConstant?

    * dsKeyword: keywords. class, if, else, break, continue, match, switch,
yield, function, def, try, raise, …
    * dsFunction: function/method declarations, i.e. the function name
after the function keyword: defun …, String …() {}, function …() {}, def
…():
    * dsConstant: NAMES_WITH_UNDERSCORES per convention
    * dsBuiltin: functions, classes, etc. which are defined in the default
namespace: e.g. http://docs.python.org/3.3/library/functions.html and the
types like int, set, …, http://golang.org/pkg/builtin/

    i agree,  is maybe to much. those are special constants/singletons like
true, false, null, … we could highlight them as constants or keywords.

    i still definitely want dsBuiltin!

2. dsBuiltinValue, dsValueKeyword or dsLanguageConstant are all the same
thing, and imho preferable to dedicated dsBoolean, dsNull, dsEllipsis, …

    the clarity issue can be fixed with *good documentation with examples
about what all the styles mean*!

3. eureka! i've got an idea about rawString and specialString/regex:

    how about dsVerbatimString and dsSpecialString (as well as
dsSpecialChar) both?

    dsVerbatimString could be used for raw strings and markup verbatim
sections and dsSpecialString/Char for LateX math mode and regexes (and
their special escape sequences inside).

    i think that's best, because ruby, perl, and coffeescript (at least)
all have both raw strings and literal regexes, and dsVerbatimString is a
more versatile name as "raw string".

[Attachment #5 (text/html)]

<div dir="ltr"><div><div>whoops, didn't get the round 2. OK. all together:<br><br>1. 2014-02-17 23:49 \
GMT+01:00 Milian Wolff &lt;<a href="mailto:mail@milianw.de">mail@milianw.de</a>&gt;:<br>       <br>       \
&gt; Can you elaborate why you want to have [dsBuiltin], and how it differs from<br>  &gt; dsKeyword, \
dsFunction, dsConstant?<br><br>       * dsKeyword: keywords. class, if, else, break, continue, match, \
switch, yield, function, def, try, raise, …<br>       * dsFunction: function/method declarations, i.e. \
the function name after the function keyword: defun …, String …() {}, function …() {}, def \
                …():<br>
       * dsConstant: NAMES_WITH_UNDERSCORES per convention<br>       * dsBuiltin: functions, classes, \
etc. which are defined in the default namespace: e.g. <a \
href="http://docs.python.org/3.3/library/functions.html">http://docs.python.org/3.3/library/functions.html</a> \
and the types like int, set, …, <a \
href="http://golang.org/pkg/builtin/">http://golang.org/pkg/builtin/</a><br> <br>       i agree,   is \
maybe to much. those are special constants/singletons like true, false, null, … we could highlight them \
as constants or keywords.<br><br>       i still definitely want dsBuiltin!<br><br><span \
class=""></span>2. dsBuiltinValue, dsValueKeyword or  dsLanguageConstant are all the same thing, and imho \
preferable to dedicated dsBoolean, dsNull, dsEllipsis, …<br><br></div>       the clarity issue can be \
fixed with *good documentation with examples about what all  the styles mean*!<br></div><div><div><br>3. \
eureka! i've got an idea about rawString and specialString/regex:<br><br>       how about \
dsVerbatimString and dsSpecialString (as well as dsSpecialChar) both?<br><br>       dsVerbatimString \
could be used for raw strings and markup verbatim sections and dsSpecialString/Char for LateX math mode \
and regexes (and their special escape sequences inside).<br> <br>       i think that's best, because \
ruby, perl, and coffeescript (at least) all have both raw strings and literal regexes, and \
dsVerbatimString is a more versatile name as "raw string".</div></div></div>



_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic