These are chat archives for ractivejs/ractive

6th
Apr 2018
Cerem Cem ASLAN
@ceremcem
Apr 06 2018 18:41
Hi!
Paul Maly
@PaulMaly_twitter
Apr 06 2018 18:45
:sparkles:
Cerem Cem ASLAN
@ceremcem
Apr 06 2018 18:49
@PaulMaly_twitter are you able to remember something like {{#with {foo: 'bar'}}} syntax is being deprecated in favor of {{#with bar as foo}} syntax?
Paul Maly
@PaulMaly_twitter
Apr 06 2018 18:56

Hm, actually, I'm not sure that I'm using it. Sometimes I doing this:

{{#with 
  {delay: 500} as fadeIn, 
  {duration: 200} as fadeOut 
}}
<div fade-in="fadeIn" fade-out="fadeOut">
...
</div>
{{/with}}

to define some in-context references

I think it would be hard to do that with first syntax.
Cerem Cem ASLAN
@ceremcem
Apr 06 2018 18:59
well, I was about to propose dropping the curly braces, like:
{{with fadeIn: {delay: 500}, fadeOut: {duration: 200} }}
<div fade-in="fadeIn" fade-out="fadeOut">...</div>
{{/with}}
I wanted to be sure beforehand
Paul Maly
@PaulMaly_twitter
Apr 06 2018 19:03
Hm, seems for me exp as ref looks more standard because of {{#each todos as todo}}
I never felt a problems with it
Cerem Cem ASLAN
@ceremcem
Apr 06 2018 19:04
nah, me neither. I just miss the old syntax
Paul Maly
@PaulMaly_twitter
Apr 06 2018 19:05
Too much talks about syntax in last days )))
Here and in Svelte
Cerem Cem ASLAN
@ceremcem
Apr 06 2018 19:06
I saw Svelte's too :)
Paul Maly
@PaulMaly_twitter
Apr 06 2018 19:07
do you voted for some variant ?
Cerem Cem ASLAN
@ceremcem
Apr 06 2018 19:07
I think everybody wants to type less. the greatest example of this desire is umount command of Linux, I think
Paul Maly
@PaulMaly_twitter
Apr 06 2018 19:07
)))
Cerem Cem ASLAN
@ceremcem
Apr 06 2018 19:07
nobody knows where and when the n is gone
do you voted for some variant ?
where? in Svelte or Ractive?
Paul Maly
@PaulMaly_twitter
Apr 06 2018 19:08
Svelte: sveltejs/svelte#1318
Big discussion about wide syntax changes
Cerem Cem ASLAN
@ceremcem
Apr 06 2018 19:14
I saw your proposal too
I think in the end, IDE's will handle that for us (like syntax highlighting theme or tab indentation size)
some will write #if (...) {<div> ... and my ide will convert it to {{#if ...}} <div>...
...and all the documentation will be rendered according to the user's "syntax theme"
Paul Maly
@PaulMaly_twitter
Apr 06 2018 19:20
Who knows ))
Chris Reeves
@evs-chris
Apr 06 2018 21:04
oh man... the bikesheds...
Paul Maly
@PaulMaly_twitter
Apr 06 2018 22:13
?
Chris Reeves
@evs-chris
Apr 06 2018 22:24
all the different syntax proposals and opinions on which one is horrendous (for svelte)
Paul Maly
@PaulMaly_twitter
Apr 06 2018 22:27
Oh, about that. Yep
Rich was firestarter )))
Paul Maly
@PaulMaly_twitter
Apr 06 2018 22:34
Seems, Svelte’s syntax is not enough...svelte ))))