String -> List -> String breaks pattern matching

4 views
Skip to first unread message

Glen

unread,
Dec 17, 2010, 2:35:57 AM12/17/10
to Reia
Playing around with reia for a little parser to see how it goes,
loving the idea but finding quite a few rough edges.

The only way I could think to create a substring is to convert it to a
list, choose the elements then convert it back to a string. However, I
came across this bug regarding pattern matching:

https://gist.github.com/744618

Thoughts?

Cheers,
-glen.

Tony Arcieri

unread,
Dec 17, 2010, 1:15:47 PM12/17/10
to re...@googlegroups.com
On Fri, Dec 17, 2010 at 12:35 AM, Glen <gle...@gmail.com> wrote:
The only way I could think to create a substring is to convert it to a
list, choose the elements then convert it back to a string. However, I
came across this bug regarding pattern matching:

That is indeed a bug with pattern matching. Per some other discussion on the list I'd like to change the internal representation of strings to UTF-8 binaries. That will fix pattern matching.
 
--
Tony Arcieri
Medioh! Kudelski
Reply all
Reply to author
Forward
0 new messages