[Github-comments] [geany/geany] Snippets: Use ASCII ellipsis for the cursor placeholder (957b49b)

elextr notifications at xxxxx
Fri Jul 28 03:52:36 UTC 2017


@b4n, underscore is in fact used as a placeholder in patterns some languages, [eg](https://doc.rust-lang.org/1.6.0/book/patterns.html) [and](https://golang.org/doc/effective_go.html#blank) [and](https://docs.microsoft.com/en-us/dotnet/fsharp/language-reference/pattern-matching) but not C. :grin:  So it is not unreasonable to use it for this, especially given the symbol issues @kugel- mentioned.

And yeah a semantic snippet placeholder might be a nice future improvement, but [ ] is a common language syntax, so I suspect it may get used in snippets, so another syntax for indicating the placeholder might be better, but the idea seems sound.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/commit/957b49b868214a4aea81641dedeabb98a497e4c1#commitcomment-23347023
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20170728/7b557265/attachment.html>


More information about the Github-comments mailing list