Two things I suppose affect that. 

1) if the tests file does not contain any definitions then it doesn't require 
IN:.

2) if the tests file does define words, the IN: determines what vocabulary 
those definitions go into. By convention we do IN: foo.tests. we might also 
want an automatic tear down to remove these definitions by default so they 
don't pollute the namespace after running tests. 

We have had two suggestions for improving this. One is to implicitly have an 
IN: foo.tests in the test loader so the line isn't necessary and we have no 
inconsistency. 

The second suggestion is to make it something like IN: foo:tests so the foo 
vocab could theoretically have a "tests" sub-vocab. We might also have a 
foo:private instead of foo.private to disambiguate user-created from "standard" 
vocab-but-not-the-vocab dictionaries. 

Neither is implemented at the moment and there has been some discussion about 
modifying this proposal slightly before implementing. 



> On Jun 27, 2016, at 12:46 PM, Alexander Ilin <ajs...@yandex.ru> wrote:
> 
> Hello!
> 
>  I'm confused.
> 
>  Should the *-tests.factor files contain the "IN: *.tests" line, or not?
> 
>  The codebase seems to be inconsistent at the moment.
> 
> ---=====---
> Александр
> 
> ------------------------------------------------------------------------------
> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
> present their vision of the future. This family event has something for
> everyone, including kids. Get more information and register today.
> http://sdm.link/attshape
> _______________________________________________
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to