Re: [perl6/specs] 9c428a: /.sleep/.alarm/

2013-11-04 Thread Jonathan Lang




On Nov 4, 2013, at 12:19 AM, GitHub  wrote:

>  Branch: refs/heads/master
>  Home:   https://github.com/perl6/specs
>  Commit: 9c428a98d060811fa086d3168321cfe437be695a
>  
> https://github.com/perl6/specs/commit/9c428a98d060811fa086d3168321cfe437be695a
>  Author: Elizabeth Mattijsen 
>  Date:   2013-11-04 (Mon, 04 Nov 2013)
> 
>  Changed paths:
>M S17-concurrency.pod
> 
>  Log Message:
>  ---
>  /.sleep/.alarm/
> 
> I think ".sleep" is confusing, as its functionality does not match sleep().
> And from this, we could spec an alarm() function, which would just create a
> subscribable with an .alarm and code to be executed when the alarm arrives.

This sounds a lot like WHEN (i.e., the hook that exists for the eventual 
implementation of an event-driven programming paradigm) should be involved 
somehow.  

[perl6/specs] 9c428a: /.sleep/.alarm/

2013-11-04 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/perl6/specs
  Commit: 9c428a98d060811fa086d3168321cfe437be695a
  
https://github.com/perl6/specs/commit/9c428a98d060811fa086d3168321cfe437be695a
  Author: Elizabeth Mattijsen 
  Date:   2013-11-04 (Mon, 04 Nov 2013)

  Changed paths:
M S17-concurrency.pod

  Log Message:
  ---
  /.sleep/.alarm/

I think ".sleep" is confusing, as its functionality does not match sleep().
And from this, we could spec an alarm() function, which would just create a
subscribable with an .alarm and code to be executed when the alarm arrives.