[elm-discuss] "I know what I'm doing"-syntax and helpful error messages for string interpolation

2016-07-31 Thread Filip Haglund
Keeping with the helpfullness of the compiler, having warnings when doing 
scetchy things with string interpolation (issue #905 on Github 
) could be useful. 
This could be warnings about building urls's from variables that might be 
user input. It could also be about building SQL queries, or HTML. 

I suggest having some basic checks in the compiler for these areas where 
special care should be taken. This would generate warnings, assuming it is 
a mistake until proven otherwise.

`"http://example.com/profile/{{userdata}}/"` would generate a warning. 
`"http://example.com/profile/{{[url] userdata }}/"`would not. 

`"My name is {{[url] userdata}}."`would generate a warning.
`"My name is {{userdata}}."`would not.

`"Check out my blog."` would generate a warning.
`"Check out my blog."` 
would generate a warning.
`"Check out my blog."` would not.

`"Select * from users where username = '{{userdata}}'"` would generate a 
warning.
`"Select * from users where username = '{{[html, url] userdata}}'"` 
would generate a warning.
`"Select * from users where username = '{{[sql] userdata}}'"` would not.

Exact syntax is not important right now. I want to know what the community 
thinks about the idea of "I know what I'm doing"-annotated string 
interpolation.

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[elm-discuss] Can we get a patch release of elm-lang/core?

2017-07-30 Thread Filip Haglund
I'm currently blocked on this 
bug 
https://github.com/elm-lang/core/commit/8e885c9bd4a7556ee039e2f53bbb3a1555d0243e#diff-de88ec52111a9d7bd82177e4654bb0f0R449
 
. It's been fixed months ago, but there's no patch release available. 

Is 6.0.0 very close to being released, or can I get a patch release for 
this bug? :)

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[elm-discuss] Re: Can we get a patch release of elm-lang/core?

2017-07-30 Thread Filip Haglund
I need all users of my package to have the bugfix as well. It's a part of 
elm-test, so if I'm testing code that depends on the buggy version of core 
against my fixed version, it will of course fail.

On Sunday, July 30, 2017 at 3:13:48 PM UTC+2, Filip Haglund wrote:
>
> I'm currently blocked on this bug 
> https://github.com/elm-lang/core/commit/8e885c9bd4a7556ee039e2f53bbb3a1555d0243e#diff-de88ec52111a9d7bd82177e4654bb0f0R449
>  
> . It's been fixed months ago, but there's no patch release available. 
>
> Is 6.0.0 very close to being released, or can I get a patch release for 
> this bug? :)
>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[elm-discuss] Re: Can we get a patch release of elm-lang/core?

2017-08-03 Thread Filip Haglund
Sure, that works great for single projects, but this is in elm-test. If I 
make the string fuzzer generate unicode strings, I'll fail the test suites 
in thousands of projects and force all of them to use a non-core version of 
this function. It simply seems mean to do this until core has released a 
patch.

On Sunday, July 30, 2017 at 3:13:48 PM UTC+2, Filip Haglund wrote:
>
> I'm currently blocked on this bug 
> https://github.com/elm-lang/core/commit/8e885c9bd4a7556ee039e2f53bbb3a1555d0243e#diff-de88ec52111a9d7bd82177e4654bb0f0R449
>  
> . It's been fixed months ago, but there's no patch release available. 
>
> Is 6.0.0 very close to being released, or can I get a patch release for 
> this bug? :)
>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.