Re: [racket-users] Quickscript of the day: Extract to function

2020-05-10 Thread Laurent
Major update:
- put-function is much faster, by triggering check-syntax as early as
possible and avoiding its re-computation.
- More warnings and error reporting (in particular regarding mutated
variables).
- Added more information at the top of the script file, in particular some
caveats.

Please report bugs here:
https://github.com/Metaxal/quickscript-extra/issues

If you have already installed this:
raco pkg update quickscript-extra
and if DrRacket is open, click on "Scripts | Manage scripts | Unload
persistent scripts" to restart the script.

On Thu, May 7, 2020 at 12:52 PM Stephen De Gabrielle <
spdegabrie...@gmail.com> wrote:

> Awesome - keep them coming.
>
> You should feature one in each Racket-News!
>
> Stephen
>
> On Thu, 7 May 2020 at 10:33, Laurent  wrote:
>
>> Have you ever wanted to extract a block of code out of its context and
>> wrap it in a function?
>>
>> Have you ever *not* done it because of the cognitive load(*) of figuring
>> out the function arguments and the return values?
>>
>> Well, now it's as easy as Ctrl-Shift-X and Ctrl-Shift-Y. Using
>> check-syntax, the extract-function and put-function scripts figure out what
>> goes in and out for you.
>>
>> Video: https://www.youtube.com/watch?v=XinMxDLZ7Zw
>> `raco pkg install quickscript-extra` to install, or
>> `raco pkg update quickscript-extra` if it's already installed.
>>
>> (*) a.k.a. laziness ;)
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Racket Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to racket-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/racket-users/CABNTSaHpOYQM2X3TW%3DHYGP7_CTA8jCaj4Euh0mcjnus1aOdt-g%40mail.gmail.com
>> 
>> .
>>
> --
> 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CABNTSaGB7iXj469Un70eqNqg8W0Pqc8muT8NDd5WY1pQv%2BJeXg%40mail.gmail.com.


Re: [racket-users] Quickscript of the day: Extract to function

2020-05-07 Thread Stephen De Gabrielle
Awesome - keep them coming.

You should feature one in each Racket-News!

Stephen

On Thu, 7 May 2020 at 10:33, Laurent  wrote:

> Have you ever wanted to extract a block of code out of its context and
> wrap it in a function?
>
> Have you ever *not* done it because of the cognitive load(*) of figuring
> out the function arguments and the return values?
>
> Well, now it's as easy as Ctrl-Shift-X and Ctrl-Shift-Y. Using
> check-syntax, the extract-function and put-function scripts figure out what
> goes in and out for you.
>
> Video: https://www.youtube.com/watch?v=XinMxDLZ7Zw
> `raco pkg install quickscript-extra` to install, or
> `raco pkg update quickscript-extra` if it's already installed.
>
> (*) a.k.a. laziness ;)
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/CABNTSaHpOYQM2X3TW%3DHYGP7_CTA8jCaj4Euh0mcjnus1aOdt-g%40mail.gmail.com
> 
> .
>
-- 


-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAGHj7-%2BLfmfuiPRyPcrVGGUKC1j5JDo4D%3Dr%3DC6dkQ7kxA-jWLw%40mail.gmail.com.


Re: [racket-users] Quickscript of the day: Extract to function

2020-05-07 Thread Andre Garzia
that is really cool! thanks for sharing!

On Thu, 7 May 2020 at 10:33, Laurent  wrote:

> Have you ever wanted to extract a block of code out of its context and
> wrap it in a function?
>
> Have you ever *not* done it because of the cognitive load(*) of figuring
> out the function arguments and the return values?
>
> Well, now it's as easy as Ctrl-Shift-X and Ctrl-Shift-Y. Using
> check-syntax, the extract-function and put-function scripts figure out what
> goes in and out for you.
>
> Video: https://www.youtube.com/watch?v=XinMxDLZ7Zw
> `raco pkg install quickscript-extra` to install, or
> `raco pkg update quickscript-extra` if it's already installed.
>
> (*) a.k.a. laziness ;)
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/CABNTSaHpOYQM2X3TW%3DHYGP7_CTA8jCaj4Euh0mcjnus1aOdt-g%40mail.gmail.com
> 
> .
>


-- 
http://www.andregarzia.com

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAF3jwTkCkHS7xGCEfsGNQuoSGLs8uXKgv2bzTAVMvQOF_C%2BZDg%40mail.gmail.com.


Re: [racket-users] Quickscript of the day: Extract to function

2020-05-07 Thread Dexter Lagan
Nice!! Yay for laziness.

On Thu, May 7, 2020 at 11:33 AM Laurent  wrote:

> Have you ever wanted to extract a block of code out of its context and
> wrap it in a function?
>
> Have you ever *not* done it because of the cognitive load(*) of figuring
> out the function arguments and the return values?
>
> Well, now it's as easy as Ctrl-Shift-X and Ctrl-Shift-Y. Using
> check-syntax, the extract-function and put-function scripts figure out what
> goes in and out for you.
>
> Video: https://www.youtube.com/watch?v=XinMxDLZ7Zw
> `raco pkg install quickscript-extra` to install, or
> `raco pkg update quickscript-extra` if it's already installed.
>
> (*) a.k.a. laziness ;)
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/CABNTSaHpOYQM2X3TW%3DHYGP7_CTA8jCaj4Euh0mcjnus1aOdt-g%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CACUENrJhQfB4KWYH%2B8FqD%2BDAkNBNoZWcYitTQsS4336tHmfNJQ%40mail.gmail.com.