Euphoria Ticket #374: Deprecate find_from and match_from

These are unnecessary now and duplicate. Duplication just adds unnecessary complexity and confusion.

It's a bit late to remove them now, but what about marking them as deprecated? We could indicate this in the manual and simply point to find and match. We could also use our new warning system.

http://openeuphoria.org/docs/lang_toplevel.html#_161_complexwithwithoutoptions

Lists deprecated as a valid warning.

Details

Type: Feature Request Severity: Normal Category: Library Routine
Assigned To: jimcbrown Status: Fixed Reported Release: 4065
Fixed in SVN #: 4089,4099 View VCS: 4089, 4099 Milestone: 4.0.0RC2

1. Comment by ArthurCrump Nov 13, 2010

It also says "Reserved (not in use yet)". This warning is required if redundant features are scheduled for removal.

2. Comment by DerekParnell Nov 14, 2010

If we implement this, we could make a new keyword called "@deprecated" and use it like this ...

procedure @deprecated xyzzy()  
  . . . whatever . . . 
end procedure 

which would display the warning (deprecated) message.

I suggest the '@' symbol because it will never interfere with user declared symbol names, and makes parsing the routine declaration easy. It also stands out like a beacon!

3. Comment by jeremy Nov 15, 2010

Seems a legit deprecated is not going to happen right now but we can surely mark it deprecated in the manual and the release notes.

4. Comment by jeremy Nov 15, 2010

Now deprecated in the manual

5. Comment by jeremy Nov 15, 2010

Derek, I think @deprecated is an excellent idea, but we may want to think that through quite a bit. A few different languages use the @ syntax for attributes attached to some given source code. @deprecated certainly would be an attribute. Introducing the @ syntax we should think along the lines of attributes and determine how we want to attach it to a function. For example:

procedure @deprecated xyzzy() 
 
-- or 
 
@deprecated 
procedure xyzzy() 
 
-- Then about other things, just making stuff up now: 
 
@desc(short="John Doe", long="Hello, World. My name is John Doe") 
procedure whoami() 

The later wouldn't work well in between "procedure" and "whoami". I'm sure we will come up with other attributes, some of the "with ..." stuff might be nice:

@no_warnings 
procedure ..... 
 
@inline 
procedure .... 

6. Comment by jeremy Nov 15, 2010

Jim is going to finish off the deprecation by removing all uses of find_from and match_from in the core and standard library.

7. Comment by jimcbrown Nov 15, 2010

Removed in svn:4099

Search



Quick Links

User menu

Not signed in.

Misc Menu